feat(github-app): check-run annotation builder - #608
Conversation
Map duplicate overlap, missing-test hotspots, and public advisory findings to sanitized GitHub check-run annotations with severity mapping and a 50-cap rollup for inline hotspot output. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
reviewbot · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Suggested action: ✅ Safe to merge — the reviewer found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Reconcile rules.test.ts with the merged annotation builder from JSONbored#608 so this PR keeps only Context check wiring changes. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
buildCheckRunAnnotationsinsrc/rules/advisory.tsto map duplicate overlap, missing-test hotspots, and public advisory findings onto GitHub check-run annotation payloads.notice/warning/failure), sanitizes all messages viasanitizeForCheckRun, and caps inline output at 50 annotations with an omitted-count rollup informatCheckRunOutput.test/unit/rules.test.tsfor hotspot mapping, deduplication, severity levels, cap behavior, and public/private output boundaries (forbidden-term assertions).Closes #574
Scope
CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally; global coverage stays at or above 97% for lines, statements, functions, and branches (aim for 98%+ branch coverage locally so CI variance does not fail near the threshold)npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm run audit --audit-level=moderateIf any required check was skipped, explain why:
npm run validatewas run locally (coverstypecheck+test:coverage); branch coverage met the 97% threshold.actionlint,test:workers,build:mcp,test:mcp-pack,ui:*,audit) are left for CI to run.Safety
Notes
buildCheckRunAnnotationsreturns empty output forminimaldetail level or when annotation context is absent.